package com.atguigu.gmall.payment.service;

import com.alipay.api.AlipayApiException;

/**
 * ClassName: AlipayService
 * Package: com.atguigu.gmall.payment.service
 * Description:
 *
 * @Author 刘轩
 * @Create 2023-09-05 21:16
 * @Version 1.0
 */


public interface AlipayService {

 /**
  * 生成支付二维码
  * @param orderId
  * @return
  */
 String createAlipay(Long orderId);

 /**
  * 发起退款
  * @param orderId
  * @return
  */

 Boolean refund(Long orderId);

 /**
  * 关闭支付宝支付记录
  * @param orderId
  * @return
  */

 Boolean closeAlipay(Long orderId);

 /**
  * 查看是否有交易记录
  * @param orderId
  * @return
  */
 boolean checkPayment(Long orderId);
}
